package com.ic.staticinjardemo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
	@Value("${spring.application.name}")
	String appName;

	@GetMapping("/")
	public String homePage(Model model) {
		model.addAttribute("appName", appName);
		return "home";
	}

	@RequestMapping("localtestpage")
	public String localTestPage() {
		return "localtestpage";
	}

	@RequestMapping("jartestpage")
	public String jarTestPage() {
		return "jartestpage";
	}
}
